package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.SportDataDao;
import com.platform.entity.SportDataEntity;
import com.platform.service.SportDataService;

/**
 * 运动数据记录表Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-20 19:54:58
 */
@Service("sportDataService")
public class SportDataServiceImpl implements SportDataService {
    @Autowired
    private SportDataDao sportDataDao;

    @Override
    public SportDataEntity queryObject(Long id) {
        return sportDataDao.queryObject(id);
    }

    @Override
    public List<SportDataEntity> queryList(Map<String, Object> map) {
        return sportDataDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sportDataDao.queryTotal(map);
    }

    @Override
    public int save(SportDataEntity tSportData) {
        return sportDataDao.save(tSportData);
    }

    @Override
    public int update(SportDataEntity tSportData) {
        return sportDataDao.update(tSportData);
    }

    @Override
    public int delete(Long id) {
        return sportDataDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return sportDataDao.deleteBatch(ids);
    }
}
